<!DOCTYPE HTML>
<html>
<head>
<title>桌面演练辅助应用系统</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="__UI__/css/bs3/dpl.css" rel="stylesheet">
<link href="__UI__/css/bs3/bui.css" rel="stylesheet">
<link href="__UI__/css/main.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
function toClearCache(){
	BUI.Message.Confirm('确认要清空缓存记录么？',function(){
		$.ajax({
			url:'{:U("Home/Index/cache")}',
			dataType:'json',
			success:function(data){
				if(data.status == 'y'){
					BUI.Message.Alert(data.info);
				}else{
					BUI.Message.Alert('系统缓存清除失败');
				}
			}
		});
	},'question');
}
</script>
</head>
<body>
<div class="content">
	<div class="dl-main-nav">
		<div class="dl-inform"><div class="dl-inform-title">贴心小秘书<s class="dl-inform-icon dl-up"></s></div></div>
		<ul id="J_Nav"  class="nav-list ks-clear">
			<li class="nav-item dl-selected"><div class="nav-item-inner">系统主页</div></li>
            <li class="nav-item"><div class="nav-item-inner">演练脚本</div></li>
            <li class="nav-item"><div class="nav-item-inner">演练记录</div></li>
            <li class="nav-item"><div class="nav-item-inner">演练资料</div></li>
            <li class="nav-item"><div class="nav-item-inner">用户管理</div></li>
            <li>
				<div class="dl-log">
					<a href="javascript:toClearCache();" class="dl-log-quit">[清除缓存]</a>
					<a href="{:U('Home/Public/logout')}" title="退出系统" class="dl-log-quit">[退出系统]</a>
				</div>
			</li>
		</ul>
	</div>
	<ul id="J_NavContent" class="dl-tab-conten"></ul>
</div>
<script type="text/javascript" src="__UI__/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="__UI__/js/bui.js"></script>
<script type="text/javascript" src="__UI__/js/config.js"></script>
<script>
BUI.use('common/main',function(){
	var config = [{
		id:'main',
		menu:[{
			text:'系统主页',
			items:[
				{id:'main',text:'系统主页',href:'{:U("main")}'},
			]
			
		}]
	},{
		id:'scripts',
		collapsed:true,
		homePage:'drill',
		menu:[{
			text:'演练脚本',
			items:[
				{id:'drill',text:'脚本演练',href:'{:U("Drill/main",array("id"=>I("get.id"),"sid"=>I("get.sid"),"pid"=>I("get.pid"),"bid"=>I("get.bid"),"nid"=>I("get.nid"),"tid"=>I("get.tid"),"k"=>I("get.k")))}',closeable:false},
			]
			
		}]
	},{
		id:'record',
		menu:[{
			text:'演练记录',
			items:[
				{id:'record',text:'记录管理',href:'{:U("Record/index")}'},
			]
			
		}]
	},{
		id:'datum',
		menu:[{
			text:'演练资料',
			items:[
				{id:'datum',text:'资料管理',href:'{:U("Datum/index")}'},
			]
			
		}]
	},{
		id:'member',
		menu:[{
			text:'用户管理',
			items:[
				{id:'member_repwd',text:'修改密码',href:'{:U("Member/repwd")}'},
				{id:'member_index',text:'用户管理',href:'{:U("Member/index")}'},
				{id:'member_config',text:'系统信息',href:'{:U("Member/config")}'},
			]},{
			text:'部门管理',
			items:[
				{id:'department_index',text:'部门管理',href:'{:U("Department/index")}'},
			]}
		]
	}];

	new PageUtil.MainPage({
		modulesConfig:config
	});	
});

</script>
</body>
</html>